import request from '../../request/request_axios.js'

//发送邮箱验证码
export const emailToCodeAPI = (toEmail) => {
    return request({
        url: '/email/sendCode',
        method: 'get',
        params:{
            toEmail
        }
    });
}

//邮箱进行登录
export const emailLoginAPI = (data) => {
    return request({
        url: '/user/login/email',
        method: 'post',
        data:data
    }); 
}
